FROM openjdk:8-jre-alpine
MAINTAINER <joshualwork@163.com>
LABEL version = "1.0.0" description = "网关"
ENV EUREKA_URL  ""
ENV SERVER_PORT 80
ENV PROFILE_ACTIVE "dev"
WORKDIR /opt/
COPY ./target/dragon-gateway-0.0.1.jar /opt
RUN chmod +x *.jar
EXPOSE ${SERVER_PORT}
CMD ["--spring.profiles.active=${PROFILE_ACTIVE}","--eureka.client.service-url.defaultZone=${EUREKA_URL}","--server.port=${SERVER_PORT}"]
ENTRYPOINT ["java","-Xms256m","-Xmx512m","-jar","dragon-gateway-0.0.1.jar"]





